   /* =========================================
           تنظیمات تم و متغیرها
           ========================================= */
        @import url('css/fontiran.css');
        @font-face {
            font-family: IRANSansX;
            font-style: normal;
            font-weight: bold;
            src: url('css/fonts/woff/IRANSansX-Bold.woff') format('woff'),
            url('css/fonts/woff2/IRANSansX-Bold.woff2') format('woff2');
        }

        @font-face {
            font-family: IRANSansX;
            font-style: normal;
            font-weight: normal;
            src: url('css/fonts/woff/IRANSansX-Regular.woff') format('woff'),
            url('css/fonts/woff2/IRANSansX-Regular.woff2') format('woff2');
        }
      

        * { 
            box-sizing: border-box; 
            margin: 0; 
            padding: 0; 
            font-family: 'IRANSansX', sans-serif; 
            outline: none;
            text-decoration: none !important;
        }

        body {
            background-color: var(--bg-main);
            background-image: radial-gradient(circle at 20% 80%, rgba(30, 41, 59, 0.4) 0%, transparent 40%),
                              radial-gradient(circle at 80% 20%, rgba(44, 30, 62, 0.4) 0%, transparent 40%);
            color: var(--text-light);
            min-height: 100vh;
            overflow-x: hidden;
            display: flex;
            flex-direction: column;
            line-height: 1.8;
        }

        /* =========================================
           هدر و منو
           ========================================= */
        header {
            background: linear-gradient(135deg, var(--bg-header-start), var(--bg-header-end));
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 4px 20px rgba(0,0,0,0.5);
            border-bottom: 1px solid rgba(255,255,255,0.05);
            padding: 0.8rem 0; 
        }

        .navbar {
            display: flex;
            justify-content: space-between; 
            align-items: center;
            width: 100%; 
            max-width: 100%; 
            padding: 0.5rem 3rem; 
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 15px;
            font-size: 1.9rem;
            font-weight: 900;
            background: linear-gradient(to right, #ffffff, var(--accent-gold));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
            white-space: nowrap;
        }

        .logo-img { max-height: 50px; width: auto; }

        .nav-links { list-style: none; display: flex; gap: 30px; margin: 0; }
        
        .nav-links li a { 
            text-decoration: none; 
            color: var(--text-light); 
            font-size: 1.1rem; 
            font-weight: 500;
            position: relative;
            padding: 5px 0;
            transition: all 0.3s ease;
        }
        
        .nav-links li a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: -2px;
            left: 50%;
            transform: translateX(-50%);
            background: linear-gradient(to right, transparent, var(--accent-gold), transparent);
            transition: width 0.4s ease-in-out;
            box-shadow: 0 0 8px var(--accent-gold);
        }

        .nav-links li a:hover::after,
        .nav-links li a.active::after { width: 100%; }

        .nav-links li a:hover,
        .nav-links li a.active { 
            color: var(--accent-gold); 
            text-shadow: 0 0 8px var(--glow-shadow); 
        }

        .hamburger { display: none; font-size: 2rem; cursor: pointer; color: var(--text-light); transition: 0.3s; }
        .hamburger.rotate { transform: rotate(90deg); color: var(--accent-gold); }

        /* ریسپانسیو منو */
        @media (max-width: 992px) {
            .navbar { padding: 0.8rem 1rem; }
            .nav-links {
                display: none;
                flex-direction: column;
                width: 100%;
                position: absolute;
                top: 100%;
                right: 0;
                background: linear-gradient(var(--bg-header-start), var(--bg-header-end));
                text-align: center;
                gap: 0;
                box-shadow: 0 10px 20px rgba(0,0,0,0.5);
                border-bottom: 1px solid var(--accent-gold);
                z-index: 999;
            }
            .nav-links.active { display: flex; }
            .nav-links li { width: 100%; border-top: 1px solid rgba(255,255,255,0.05); }
            .nav-links li a { display: block; padding: 1.2rem; width: 100%; }
            .nav-links li a::after { display: none; }
            .nav-links li a:hover, .nav-links li a.active {
                background-color: rgba(255,255,255,0.05);
            }
            .hamburger { display: block; }
        }

        @media (max-width: 768px) {
            .logo { font-size: 1.5rem; gap: 10px; }
            .logo-img { max-height: 40px; }
        }

        /* =========================================
           محتوای اصلی (مخصوص صفحه داستان)
           ========================================= */
        .container {
            max-width: 1100px;
            margin: 0 auto;
            padding: 3rem 1.5rem;
            flex: 1;
            width: 100%;
        }

        /* بخش داستان */
        .story-section {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 3rem;
            align-items: center;
            margin-bottom: 4rem;
        }

        .story-content {
            background: var(--bg-card);
            padding: 2.5rem;
            border-radius: 20px;
            border: 1px solid var(--border-light);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        .story-content h1 {
            font-size: 2.2rem;
            margin-bottom: 1.5rem;
            color: var(--text-light);
            border-bottom: 1px solid rgba(212, 175, 55, 0.2);
            padding-bottom: 15px;
            display: inline-block;
        }
        
        .story-content h1 span { color: var(--accent-gold); }

        .story-content p {
            font-size: 1.05rem;
            color: var(--text-muted);
            margin-bottom: 1.2rem;
            text-align: justify;
            line-height: 2;
        }

        .story-content strong { color: var(--text-light); font-weight: 700; }

        /* باکس تصویر */
        .story-image-box {
            position: relative;
            background: var(--bg-card);
            border: 1px solid var(--border-light);
            border-radius: 30px;
            padding: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
            box-shadow: 0 20px 50px rgba(0,0,0,0.3);
            height: 100%;
            min-height: 400px;
        }

        .story-image-box img {
            width: 100%;
            max-width: 350px;
            border-radius: 20px;
            filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.15));
            transition: transform 0.3s;
        }
        
        .story-image-box:hover img { transform: scale(1.02); }

        /* آمار */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.5rem;
            margin-top: 2rem;
        }

        .stat-card {
            background: var(--bg-card);
            padding: 2rem;
            border-radius: 15px;
            text-align: center;
            border: 1px solid var(--border-light);
            transition: transform 0.3s, background 0.3s;
        }

        .stat-card:hover {
            transform: translateY(-5px);
            background: var(--bg-item);
            border-color: rgba(212, 175, 55, 0.3);
        }

        .stat-card h2 { 
            color: var(--accent-gold); 
            font-size: 2.2rem; 
            margin-bottom: 0.5rem; 
            text-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
        }
        
        .stat-card p { color: var(--text-muted); font-size: 0.95rem; }
        
        /* ریسپانسیو صفحه داستان */
        @media (max-width: 992px) {
            .story-section { grid-template-columns: 1fr; }
            .story-image-box { order: -1; min-height: 300px; }
        }

        /* =========================================
           فوتر استاندارد و اصلاح شده (کپی شده از کد اول)
           ========================================= */
        footer {
            background: linear-gradient(135deg, var(--bg-header-start), var(--bg-header-end));
            border-top: 1px solid var(--accent-gold);
            padding: 4rem 1rem 1rem 1rem;
            margin-top: 5rem;
        }

        .footer-container {
            max-width: 90%;
            display: grid;
            margin: auto;
            /* دسکتاپ: 4 ستون مساوی */
            grid-template-columns: repeat(4, 1fr);
            gap: 2rem;
            /* پیش‌فرض: راست چین */
            text-align: center; 
        }

        /* --- اصلاح مهم: استایل تیترها برای قرارگیری خط زیرین دقیق --- */
        .footer-col h4, .footer-col .footer-logo-title {
            color: var(--accent-gold);
            font-size: 1.2rem;
            font-weight: bold;
            margin-bottom: 1.5rem;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--accent-gold);
            display: inline-block; /* باعث می‌شود خط دقیقاً اندازه متن باشد */
        }

        .footer-links { list-style: none; padding: 0; text-align: center; }
        
        .footer-links li { 
            margin-bottom: 15px; 
            display: flex; 
            align-items: center; 
            gap: 10px;
            justify-content:center; /* در دسکتاپ راست چین */
        }

        .contact-icon-box {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 22px;
            height: 22px;
            flex-shrink: 0;
            
             }
        .contact-icon-box svg {
            width: 100%;
            height: 100%;
            fill: var(--accent-gold);
        }

        .footer-links a, .footer-links span { 
            color: var(--text-muted); 
            font-size: 0.95rem; 
            transition: all 0.3s;
            text-decoration: none;
        }
        .footer-links a:hover { 
            color: var(--text-light); 
            padding-right: 8px;
            text-shadow: 0 0 5px var(--glow-shadow);
        }

        .license-box { display: flex; gap: 10px; justify-content: center; }

        .footer-bottom {
            border-top: 1px solid var(--border-light);
            margin-top: 3rem;
            padding-top: 2rem;
            display: flex;
            justify-content: space-between;
            color: var(--text-muted);
            font-size: 0.85rem;
            flex-wrap: wrap;
            gap: 15px;

        }

        /* --- مدیا کوئری‌های فوتر --- */

        /* تبلت (Tablet) - وسط چین شود */
        @media (max-width: 1024px) {
            .footer-container {
                grid-template-columns: repeat(2, 1fr);
                text-align: center; /* وسط چین کردن متن */
            }

            .footer-col {
                display: flex;
                flex-direction: column;
                align-items: center; /* وسط چین کردن المان‌ها (تیتر و...) */
            }

            .footer-links li {
                justify-content: center; /* وسط چین کردن آیتم‌های لیست */
            }

            .license-box {
                justify-content: center;
            }
        }

        /* موبایل (Mobile) - وسط چین و تک ستون */
        @media (max-width: 768px) {
            .footer-container { 
                grid-template-columns: 1fr;
                text-align: center;
            }
            
            .footer-col {
                display: flex;
                flex-direction: column;
                align-items: center;
            }

            .footer-links li { justify-content: center; }
            .license-box { justify-content: center; }

            .footer-bottom { 
                justify-content: center; 
                text-align: center; 
            }
            
            .footer-links a:hover { padding-right: 0; }
        }
        @media (min-width: 1025px) and (max-width: 1590px) {
            .icon-marker
        {
            margin-bottom: 25px;
        }
            
        }